//
//  TopicCell.m
//  fmdb_demo
//
//  Created by rujia chen on 15/10/18.
//  Copyright (c) 2015年 dfrz. All rights reserved.
//

#import "TopicCell.h"
#import <SDWebImage/UIImageView+WebCache.h>

@implementation TopicCell

- (void)setModel:(TopicModel *)model{
    _model = model;
    [self.topicImageView sd_setImageWithURL:[NSURL URLWithString:model.smallpic]];
    self.titleLabel.text = model.title;
    self.bbsNameLabel.text = model.bbsname;
    self.replyCountLabel.text = [NSString stringWithFormat:@"%@回帖",@(model.replycounts)];
}

@end
